<template>
<div class="page" data-name="order-confirm">
  <div class="navbar">
    <div class="navbar-inner">
      <div class="left">
      	 <a href="#" class="link back">
           <i class="icon icon-back"></i>
         </a>
      </div>
      <div class="title">
      	订单轨迹
      </div>
      <div class="right">
      </div>
    </div>
  </div>
  <div class="page-content">
  	<div class="order-shipping-history-container">
				
	</div>	
  </div>
</template>


<script>

function listOrderShippingHistory(start,pagesize,type){
	  var  orderListResult = [{orderId:1},{orderId:2}];
      var recommendOrderShippingListTemplate = $$('#order-shipping-history-container').html();
      var compiledRecommendOrderShippingListTemplate = Template7.compile(recommendOrderShippingListTemplate);
      var innerHTML = compiledRecommendOrderShippingListTemplate({shippingHistory:orderListResult});
       if(type=='ap'){//添加
      	 $$(".order-shipping-history-container").append(innerHTML);
       }else if(type=='rw'){
      	 $$(".order-shipping-history-container").html(innerHTML);
       }else{
     	  	app.dialog.alert("未知数据显示类型["+type+"]");
       }
}

  return {
    data: function () {
    	 var lotBatchListResult = [];
      return {
    	  lotBatchList: lotBatchListResult
      };
    },
  	on:{
  		 pageInit: function () {
  	        self = this;
  	        app = self.$app;
			  	        
  	      	listOrderShippingHistory(0,10,"ap");
  	        
  	        
  		 }
  	}
	
  };
</script>
